package org.lifeaddict.sybill;

public class DetailInfo {
	  
	 private String name = "";
	 private String location = "";
	 private String day = "";
	 private String date = "";
	 private String time = "";
	 private String alarmTime = "";
	 private long id;

	 public String getName() {return name;}
	 public void setName(String name) {this.name = name;}
	 
	 public String getLocation() {return location;}
	 public void setLocation(String location) {this.location = location;}
	 
	 public String getDay() {return day;}
	 public void setDay(String day) {this.day = day;}
	 
	 public String getDate() {return date;}
	 public void setDate(String date) {this.date = date;}
	 
	 public String getTime() {return time;}
	 public void setTime(String time) {this.time = time;}
	 
	 public String getAlarmTime() {return alarmTime;}
	 public void setAlarmTime(String t) {
		 String point = t.substring(1,2);
		 String hour = t.substring(0,1);
		 String minutes = t.substring(2,4);
		 if(!point.equals(":")) {
			 hour = t.substring(0,2);
			 minutes = t.substring(3,5);
		 }
		 int h = Integer.parseInt(hour);
		 h = h-1;
		 alarmTime = h+":"+minutes;
		 System.out.println(alarmTime);
	 }
	 
	 public long getId() {return id;}
	 public void setId(long id) {this.id = id;}
}